package com.example.service.impl;

import com.example.entity.SysUser;
import com.example.service.LoginService;
import com.example.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private SysUserService sysUserService;

    @Override
    public SysUser login(String username, String password) {
        SysUser user = sysUserService.findUser(username, password);
        return user;
    }


}
